﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using DslEBCLangCustomSerializer;
using DslEBCLangCustomSerializer.Contract;

namespace EBC.EBCLangDesigner
{
    internal partial class EBCLangDesignerDocData
    {
        private ICustomSerializer _serializer;
        
        protected override void InitializeComposition()
        {
            base.InitializeComposition();            
            _serializer = new CustomSerializer();
            _serializer.Initialize();
        }

        protected override void Save(string fileName)
        {
            base.Save(fileName);
            _serializer.Save(fileName, this.RootElement as Board);          
        }
    }
}
